package com.xin.utils
{
	import flash.net.LocalConnection;
	import flash.system.System;

	/**
	 * 垃圾回收类
	 * @author daichangxin
	 * 
	 */	
	public class GarbageClean
	{
		public function GarbageClean()
		{
			
		}
		/**
		 * 调用此方法可以强制执行系统垃圾回收
		 */		
		public function gc():void
		{
			System.gc();
			try
			{
				new LocalConnection().connect("xin");
				new LocalConnection().connect("xin");
			}
			catch (e:Error)
			{
				
			}
		}
	}
}